import type { RouteRecordRaw } from "vue-router";

export default {
  path: "/system",
  name: "System",
  redirect: "/system/user",
  meta: {
    icon: "material-symbols:display-settings-outline",
    title: "系统管理",
    rank: 1
  },
  children: [
    {
      path: "/system/user",
      name: "SystemUser",
      component: () => import("@/views/system/user/index.vue"),
      meta: {
        icon: "material-symbols:manage-accounts-outline",
        title: "用户管理"
      }
    },
    {
      path: "/system/role",
      name: "SystemRole",
      component: () => import("@/views/system/role/index.vue"),
      meta: {
        icon: "material-symbols:supervised-user-circle-outline",
        title: "角色管理"
      }
    },
    {
      path: "/system/permission",
      name: "SystemPermission",
      component: () => import("@/views/system/permission/index.vue"),
      meta: {
        icon: "material-symbols:key-outline",
        title: "权限管理"
      }
    }
  ]
} as RouteRecordRaw;
